package cn.gdsdxy.service;

import cn.gdsdxy.dao.GoodsMapper;
import cn.gdsdxy.pojo.Goods;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GoodsService {
    @Autowired
    GoodsMapper goodsMapper;
    public List<Goods> getAllGoods(){return goodsMapper.getAllGoods();}
    public List<Goods> getphoneGoods(){return goodsMapper.getphoneGoods();}
    public List<Goods> getairposGoods(){return goodsMapper.getairposGoods();}
    public List<Goods> getpadGoods(){return goodsMapper.getpadGoods();}
    public List<Goods> getmacGoods(){return goodsMapper.getmacGoods();}
    public Goods getidGoods(int id){return goodsMapper.getidGoods(id);}
    public List<Goods> gettitleGoods(String title){return goodsMapper.gettitleGoods(title);}
}
